#include "light.h"
const int fpinNumber=5;
int light(bool &v){
 pinMode(fpinNumber,INPUT);
 sleep(0.3);
 if(digitalRead(fpinNumber)==0)
 	v=0;
 else if(digitalRead(fpinNumber)==1)
 	v=1;
 return 0;
}
